package cn.faifai.desktop.events.listener;

import cn.faifai.framework.utils.SingleEvenBus;
import cn.faifai.desktop.view.dialog.FileTaggingDialog;
import cn.faifai.desktop.view.components.FileDetail;
import cn.faifai.desktop.view.dialog.TagEditDialog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class ListenerRegister {
    @Autowired
    private FileDetail fileDetail;

    public void register(){
        SingleEvenBus.getInstance().register(fileDetail);
        SingleEvenBus.getInstance().register(FileTaggingDialog.getInstance());
        SingleEvenBus.getInstance().register(TagEditDialog.getInstance());
        SingleEvenBus.getInstance().register(new TagBrowserUpdateListener());
    }
}
